package com.codeBlock;

public class CodeBlock {


    public void fun(){
        {
            System.out.println("局部代码块");
        }
    }

    {
        System.out.println("构造代码块");
    }

    public void run() {
        synchronized (this) {
            System.out.print("同步代码块");
        }
    }

    static {
        System.out.println("静态代码块");
    }

}